package com.maple.soa.controller;

import com.maple.soa.proxy.ProxyHandler;
import com.maple.soa.service.UserService;
import com.maple.soa.service.impl.UserServiceImpl;

/**
 * @author lijian
 * @date 2020/7/6
 */
public class ProxyController {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl();

        ProxyHandler handler = new ProxyHandler();
        handler.setName("李健");
        handler.setObject(userService);
        UserService proxy = (UserService) handler.getProxy();
        proxy.getById(123L);
    }
}
